<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/3/18
 * Time: 17:55
 */

namespace app\api\model;


class ProductImage extends BaseModel
{
    protected $hidden = ['delete_time', 'product_id'];

    //关联Image 一对一
    public function imgUrl(){
        return $this->belongsTo('Image', 'img_id', 'id');
    }
}